cmake_minimum_required(VERSION 2.8)
project(TEST)

option(BUILD_SHARED_LIBS "Build shared libraries" ON)
if (${BUILD_SHARED_LIBS})
    add_definitions(-DUSE_DLL)
endif()

add_library(lib1 lib1.cpp)

add_library(lib2 lib2.cpp)

add_executable(main main.cpp)

target_link_libraries(main lib1 lib2)
